//package com.plian.system.wrapper.hr.abroad;
//
//import com.plian.system.dto.hr.abroad.AbroadBusinessDTO;
//import com.plian.system.entity.hr.abroad.AbroadBusiness;
//import com.plian.system.mybatis.support.BaseWrapper;
//import com.plian.system.vo.hr.abroad.AbroadBusinessVO;
//import com.plian.system.wrapper.util.CacheWrapperUtil;
//import com.plian.system.wrapper.util.WrapperUtil;
//import org.mapstruct.Mapper;
//import org.mapstruct.Mapping;
//import org.mapstruct.Mappings;
//
//import static com.plian.system.wrapper.util.WrapperConstant.*;
//
///**
// * 因公出国（境）管理包装类,返回视图层所需的字段
// *
// * @author gangan
// * @since 2019-12-13
// */
//@Mapper(componentModel = SPRING, uses = {CacheWrapperUtil.class, WrapperUtil.class})
//public interface AbroadBusinessWrapper extends BaseWrapper<AbroadBusiness, AbroadBusinessDTO, AbroadBusinessVO> {
//
//	@Override
//	@Mappings(value = {
//			@Mapping(source = "createUser", target = "createUserName", qualifiedByName = USER_ID_TO_NAME),
//			@Mapping(source = "approvedUser", target = "approvedUserName", qualifiedByName = USER_ID_TO_NAME),
//			@Mapping(source = "declaringUnitId", target = "declaringUnitName", qualifiedByName = ORG_ID_TO_NAME),
//			@Mapping(source = "groupUnit", target = "groupUnitName", qualifiedByName = ORG_ID_TO_NAME),
//			@Mapping(source = "companyId", target = "companyName", qualifiedByName = ORG_ID_TO_NAME),
//			@Mapping(source = "commanderId", target = "commanderName", qualifiedByName = STAFF_ID_TO_NAME),
//			@Mapping(source = "jobNameId", target = "jobNameId", qualifiedByName = STR_NULL_TO_EMPTY),
//			@Mapping(source = "jobNameId", target = "jobNameName", defaultValue = ""),
//			@Mapping(source = "taskStatus", target = "taskStatusName", qualifiedByName = DICT_CODE_TO_NAME),
//			@Mapping(source = "declarationsCategoryId", target = "declarationsCategoryName", qualifiedByName = DICT_CODE_TO_NAME),
//	})
//	AbroadBusinessVO entityToVO(AbroadBusiness entity);
//
//}
